/**
 * 根据process.env.NODE_ENV
 * 1. 开发环境：development
 * 2. 生产环境：production
 * 3. 测试环境：test
 */
let BASE_URL = ''
let TIME_OUT = 10000

if (process.env.NODE_ENV === 'development') {
  BASE_URL = 'http://123.207.32.32:8000/'
  TIME_OUT = 10000
} else if (process.env.NODE_ENV === '生产环境：production') {
  BASE_URL = 'http://coderwhy.org/prod'
  TIME_OUT = 50000
} else {
  BASE_URL = 'http://coderwhy.org/test'
  TIME_OUT = 10000
}

export { BASE_URL, TIME_OUT }
